<template>
  <div class="dashboard-container">
    <!-- 柱状图 -->
    <Histogram />
    <!-- 饼状图 -->
    <PieChart />
    <!-- 饼状图  -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import Histogram from './components/Histogram.vue'
import PieChart from './components/PieChart.vue'
export default {
  name: 'Dashboard',
  components: {
    Histogram,
    PieChart
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }

}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    display: flex;
    justify-content: space-between;
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
